<?php

$TimeEnd = date("2009-m-d H:i:s");
if ($GLOBALS['MYT']->db_query("INSERT INTO hd_promclients
		(PromCliNumero,Prom_ID,TimeStart,TimeEnd,PromUser,PromOrigem)
		VALUES ({$_POST['OBJCTCL']},{$_POST['Prom_ID']},'$sysTime','$TimeEnd',$_SESSION[$SESSID],$_SESSION[$SESSCD])")) {
    echo '<script charset="utf-8" type="text/javascript">
		document.InvoiceProperties.action=\'_response/call.php?get=Operative/remittancepromotion\';
		subform(\'InvoiceProperties\',\'Inv_prom\');</script>';
}
